// RateItem.java
package com.example.myapplication;

public class RateItem {
    private int id;
    private String currencyName;
    private double rateValue;

    // 构造函数、getter和setter
    public RateItem() {}

    public RateItem(String currencyName, double rateValue) {
        this.currencyName = currencyName;
        this.rateValue = rateValue;
    }

    public RateItem(int id, String currencyName, double rateValue) {
        this.id = id;
        this.currencyName = currencyName;
        this.rateValue = rateValue; // 使用正确的字段名
    }


    // Getter和Setter方法
    public int getId() { return id; }
    public void setId(int id) { this.id = id; }
    public String getCurrencyName() { return currencyName; }
    public void setCurrencyName(String currencyName) { this.currencyName = currencyName; }
    public double getRateValue() { return rateValue; }
    public void setRateValue(double rateValue) { this.rateValue = rateValue; }
}
